import request from '@/utils/request'
import data from '@/assets/data.json'
import type { Data } from '@/api/types';
export const getVisualization: ()=> Promise<Data> = () => {
    console.log('getVisualization');
	try {
		return request({
			url: '/visualization'
		}) as Promise<Data>
	} catch (error) {
		console.log(error);
		return Promise.resolve(data as unknown as Data) 
	}
}